import request from '@/utils/request'
export default {
  // 1.获得重置密码申请列表
  getApplyList (current, limit) {
    return request({
      url: `/apply/password/list/${current}/${limit}`,
      method: 'get'
    })
  },
  // 2.获得重置密码历史列表
  getHistoryList (current, limit) {
    return request({
      url: `/apply/password/history/${current}/${limit}`,
      method: 'get'
    })
  },
  // 3.重置用户密码
  resetPassword (id) {
    return request({
      url: `/apply/password/${id}/reset`,
      method: 'post'
    })
  },
  // 4.申请清洗次数
  addClean (num) {
    return request({
      url: `/apply/clean/${num}`,
      method: 'post'
    })
  },
  // 5.申请分析次数
  addAnalyze (num) {
    return request({
      url: `/apply/analyze/${num}`,
      method: 'post'
    })
  },
  // 6.通过次数申请
  applyNum (id) {
    return request({
      url: `/apply/${id}/num`,
      method: 'post'
    })
  },
  // 7.拒绝次数申请
  rejectNum (id) {
    return request({
      url: `/apply/${id}/reject`,
      method: 'post'
    })
  },
  // 8.获得数量申请列表
  getNumList (current, limit) {
    return request({
      url: `/apply/num/list/${current}/${limit}`,
      method: 'get'
    })
  },
  // 9.获得数量历史列表
  getNumHistory (current, limit) {
    return request({
      url: `/apply/num/history/${current}/${limit}`,
      method: 'get'
    })
  },
}
